package com.mujin.keji.collectionsystem.module.main.repository;

import android.arch.lifecycle.LiveData;

import com.mujin.keji.collectionsystem.base.BaseDto;
import com.mujin.keji.collectionsystem.base.CommonRepository;
import com.mujin.keji.collectionsystem.http.Api;
import com.mujin.keji.collectionsystem.module.main.dto.BannerListDto;
import com.mujin.keji.collectionsystem.module.main.vo.BannerVo;

/**
 * 广告Repository
 *
 * @author weishixiong
 * @Time 2018-04-25
 */


public class AdvertiseRepository extends CommonRepository<BannerListDto> implements IAdvertiseRepository {
    @Override
    public LiveData<BaseDto<BannerListDto>> getAdvertises(BannerVo vo) {
        return request(Api.getAdvertises(vo)).send().get();

    }
}
